//
//  PYDelayManager.m
//  xuexi
//
//  Created by Jim on 2018/4/3.
//  Copyright © 2018年 Jim. All rights reserved.
//

#import "PYDelay.h"

@implementation PYDelay

+ (void)delayInMainThreadAfter:(float)seconds block:(void (^)(void))block
{
    if (block) {
        dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(NSEC_PER_SEC * seconds)), dispatch_get_main_queue(), block);
    }
}

@end
